package homework;
// 标准javabean
public class Point {
    private int x;private int y;private int z;
    Point(){}
    Point(int x, int y, int z){
        this.x=x;this.y=y;this.z=z;
    }
    public void setX(int x){this.x=x>0?x:0;}
    public void setY(int y){this.y=y>0?y:0;}
    public void setZ(int z){this.z=z>0?z:0;} //点P是空间中第一卦限中的一个点
    public int getX(){return x;}
    public int getY(){return y;}
    public int getZ(){return z;}
}
